<?php

defined('SYSPATH') or die('No direct access allowed.');

class Model_Info_User extends Model_Auth_User {

    public function rules() {
        return array(
        'name' => array(
        array('not_empty'),
        array('min_length', array(':value', 4)),
        array('max_length', array(':value', 20)),
        array('regex', array(':value', '/^[-\pL\pN_.]++$/uD')),
        ),
        'surname' => array(
        array('not_empty'),
        array('min_length', array(':value', 4)),
        array('max_length', array(':value', 30)),
        array('regex', array(':value', '/^[-\pL\pN_.]++$/uD')),
        ),
        );
    }

}
